package cn.hello1023.springbootlabs.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorld {
    @GetMapping("hello1")
    public String hello(){
        //连接数据库，到数据库中查询该用户商品信息
        //将商品信息返回给前端
        return "Hello World";
    }

    @GetMapping("hello2")
    public String hello2(){
        //**********
        return "{'abc':111}";
    }
}
